<?
    // Initialize the session.
    session_start();
   // require_once("../inc/checkAdminPagePermissions.php");
    //require_once("../inc/config.inc.php");
    require_once('../conexion.php');
	$cadena3="select * from pago where id_correo='$_GET[idcorreo]'";
	$datos3=mysql_query($cadena3);
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<html>
<head>
    <title>Formas de Pago</title>
    <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
	
    <link href="../css/main.css" type=text/css rel=stylesheet>
	<script>
var nav4 = window.Event ? true : false;
function incluir()
{
document.location="insertarpago.php?idcorreo=<?=$_GET[idcorreo];?>"
}
	</script>
</head>


<!-- BEGIN MAIN CONTENT ARE -->
<body style="background: #ffffff;">

<form action="formasdepago.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  <td align="left"><h4 align="left">MIS FORMAS DE PAGO</h4>
  </td>
  </tr>
	<tr>
	<td>&nbsp;</td>
	</tr>
	
	<tr>
	<td>
	<table width="100%" cellpadding="1" cellspacing="1">
	<tr  bgcolor="">
	<td height="20" colspan="5" ><div align="left"><strong>DATOS DE FORMAS DE PAGO</strong></div></td>
	  <td align="right"><input name="Submit" type="button"  value="Agregar Forma de Pago" onClick="incluir()"  />	</td>
	</tr>
	<tr>
	<td colspan="6">
	<hr>	</td>
	</tr>
    <tr  >
      <td  ><div align="left"><strong>Nombre en Tarjeta</strong></div></td>
	  <td  ><div align="left"><strong>Banco</strong></div></td>
	  <td ><div align="left"><strong>N&uacute;mero de Tarjeta</strong></div></td>
	   <td  ><div align="left"><strong>Tipo</strong></div></td>
	   <td  ><div align="center"><strong>Fecha de Vecimiento</strong></div></td>
	   <td><div align="center"><strong>Acciones
	     </strong></div></td>
	   </tr>
	   <? while  ($fila3=mysql_fetch_assoc($datos3)) { ?>
	   <tr>
      <td   colspan="1" >
        
          <div align="left">
            <a href="mispagos.php?id=<?=$fila3["id_pago"]; ?>"><?=$fila3["nombre_en_tarjeta"]; ?></a>          </div></td>
	    
      
      <td >
        <div align="left">
          <a href="mispagos.php?id=<?=$fila3["id_pago"]; ?>"><?=$fila3["banco"]; ?></a>        </div></td>
	    
      <td  >
        
          <div align="left">
            <a href="mispagos.php?id=<?=$fila3["id_pago"]; ?>"><?=$fila3["numero_tarjeta"]; ?></a>          </div></td>
         <td >
           <div align="left">
            <a href="mispagos.php?id=<?=$fila3['id_pago']; ?>"><?=$fila3["tipo_tarjeta"]; ?></a>           </div></td>
	    
      <td>
        <div align="center"><a href="mispagos.php?id=<?=$fila3['id_pago']; ?>">
          <?=$fila3["fecha_vencimiento"]; ?>
        </a> </div></td>
      
      <td><div align="center">
	     <a href="eliminardireccion.php?id=<?=$fila3["id_pago"]; ?>&idcorreo=<?=$fila3["id_correo"]; ?>"><img src="../images/admin_delete.gif" width="20" height="20" border="0"></a>
	     </div></td>
    </tr>
	<? } ?>
	</table>	</td>
	</tr>
	<tr>
	<td>&nbsp;</td>
	</tr>
	
	<tr>
	<td>&nbsp;</td>
	</tr>
    
    
	
	
	<tr>
	<td><hr>
	</td>
	</tr>
	<tr>
	<td align="center">&nbsp;</td>
	</tr>
  </table>
  <input type="hidden" name="MM_insert" value="form1">
  <input name="id" type="hidden" value="<?=$fila2["id"]; ?>">
  <input name="id_correo" type="hidden" value="<?=$fila2["id_correo"]; ?>">
</form>
</body>
</html>
